<div class="container">
    <div class="row">
        <div class="col-md-12">
			<table class="table">
				<tr>
					<td>商品名称</td>
					<td><input type="text"  ng-model="post.name" placeholder=""></td>
					<td>商品编号</td>
					<td><input type="text"  ng-model="post.codes" placeholder="y源码;uUI;电子d;实物s"></td>
				</tr>
				<tr>
					<td>商品旧价格</td>
					<td><input type="text"  ng-model="post.oldprice" placeholder=""></td>
					<td>商品新价格</td>
					<td><input type="text"  ng-model="post.price" placeholder="页面实际价格"></td>
				</tr>
				<tr>
					<td>运送费用</td>
					<td><input type="text"  ng-model="post.yprice" placeholder="运送费用"></td>
					<td>库存数量</td>
					<td><input type="text"  ng-model="post.shcema" placeholder="库存数量"></td>
				</tr>
				<tr>
					<td>商品大类</td>
					<td><input type="text"  ng-model="post.type" placeholder=" 1源码；2书籍；3商品"></td>
					<td>商品小类</td>
					<td><input type="text"  ng-model="post.type1" placeholder="搜索标签项"></td>
				</tr>
				<tr>
					<td>商品标签</td>
					<td><input type="text"  ng-model="post.tag" placeholder="源码例如：ionic react angluar"></td>
					<td>标签图片</td>
					<td><input type="text"  ng-model="post.tagimg" placeholder="用于列表展示图"></td>
				</tr>
				<tr>
					<td>商品热度</td>
					<td><input type="text"  ng-model="post.hot" placeholder="0普通;1热门;2最新"></td>
					<td>商品版本</td>
					<td><input type="text"  ng-model="post.version" placeholder=""></td>
				</tr>
				<tr>
					<td>商品DEMO地址</td>
					<td><input type="text"  ng-model="post.demo" placeholder=""></td>
					<td>商品后台下载地址</td>
					<td><input type="text"  ng-model="post.download" placeholder=""></td>
				</tr>
				
				<tr>
					<td>商品建立日期</td>
					<td><input type="text"  ng-model="post.credate" placeholder="yyyy-mm-dd"></td>
					<td>商品更新日期</td>
					<td><input type="text"  ng-model="post.modate" placeholder="email或者短信通知标识"></td>
				</tr>
				<tr>
					<td>商品简介</td>
					<td colspan="3"><textarea ng-model="post.title"  cols="100" rows="4" placeholder="10字以内介绍"></textarea></td>
				</tr>
				<tr>	
					<td>商品展示图片</td>
					<td colspan="3">
						<code>
							<textarea ng-model="post.imgs"  
							cols="100" rows="4" placeholder="4张图片为一个数组[[],[]]"></textarea>
						</code>
					</td>
				</tr>
				<tr>
					<td>实物商品规格</td>
					<td>
						<input type="text" ng-model="post.issize" placeholder="0没有，1有" >
					</td>
					<td>商品是否显示到网站</td>
					<td>
						<input type="text" ng-model="post.status" placeholder="0不要，1是" >
					</td>
				</tr>
				<tr>
					<td>实物商品规格</td>
					<td colspan="3">
						<code>
						<textarea ng-model="post.size" placeholder="实物商品规格，另外尺寸，大小，颜色" cols="100" rows="4"></textarea>
						</code>
					</td>
				</tr>
				<tr>
					<td>商品源码记录</td>
					<td colspan="3">
						<textarea ng-model="post.codeyuan" placeholder="标注购买出处;账号密码" cols="100" rows="4"></textarea>
					</td>
				</tr>
				<tr>
					<td>商品更新日志</td>
					<td colspan="3">
						<textarea ng-model="post.postlog"  cols="100" rows="4"
						 placeholder="非常重要，每次更新东西都有记录（时间+内容）"></textarea>
					</td>
				</tr>
				<tr>
					<td>商品详细信息</td>
					<td colspan="3">
						<code><textarea ng-model="post.details"  cols="100" rows="4"
						placeholder='{"author1":"作者姓名", "author2":"头像图片地址", "details":[]}'></textarea></code>
					</td>
				</tr>
				<tr>
					<td>商品描述&nbsp;
						<button class="btn btn-primary"
						ng-click="htmlshow=!htmlshow">预览</button>
					</td>
					<td colspan="3" ng-if="!htmlshow">
						<textarea ng-model="post.desc"  cols="100" rows="20"
						 placeholder="html代码段"></textarea>
					</td>
					<td colspan="3" ng-if="htmlshow">
						<div  ng-bind-html="post.desc | trustHtml"></div>
					</td>
				</tr>
			</table>		

			<p style="text-align: center;">
				<button class="btn btn-primary"
				ng-click="updatePost()">修改商品</button>
			</p>
            <br><br><br>
        </div>
    </div>

    <div class="row">
    	<div class="col-md-12">
    		
    	</div>
    </div>
   
</div>